<%@ page contentType="text/html;charset=ISO-8859-1" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
	    <link type="text/css" rel="stylesheet" href="/webapp/stylesheet/common.css">
	    <title>DeepStack : Export</title>
	  	<script type="text/javascript" language="javascript" src="/webapp/javascript/common.js">
	  	</script>
	</head>
  	<body>
  		<h2>Export</h2>
  		<form action="/admin/export">
  			<select name="type">
  				<option value="player">players.csv</option>
  				<option value="tournament">tournaments.csv</option>
  				<option value="ranking">rankings.csv</option>
  				<option value="database">database.zip</option>
  			</select>
  			<input type="submit" value="Export"/>
  		</form>
  		<!-- 
  		<p>players.csv</p>
  		<div class="export">
	  		<c:forEach var="player" items="${players}">
	  			<c:out value="${player.id},${player.name}"/><br/>
	  		</c:forEach>
  		</div>
  		<p>tournaments.csv</p>
  		<div class="export">
	  		<c:forEach var="tournament" items="${tournaments}">
	  			<c:out value="${tournament.id},${tournament.date}"/><br/>
	  		</c:forEach>
  		</div>
  		<p>rankings.csv</p>
  		<div class="export">
	  		<c:forEach var="ranking" items="${rankings}">
	  			<c:out value="${ranking.tournament.id},${ranking.player.id},${ranking.rank}"/><br/>
	  		</c:forEach>
  		</div>
  		 -->
  		<p><a href="/public/menu">Main menu</a></p>
	</body>
</html>